home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 1
/
SPACE - Library 1 - Volume 1.iso
/
apps
/
137
/
fsrepack.doc
< prev
next >
Wrap
Text File
|
1985-11-19
|
4KB
|
90 lines
FSREPACK - Atari ST File System Compacter
Version 1.1
February 6, 1988
Copyright Barry Locklear, 1988
All rights reserved.
This program may be freely redistributed only for
non-profit purposes. For any other uses, please
contact the author for permission to use.
Author: Barry Locklear
Genie: xmg21417
CompuServe: 76327,2102
UseNet: ihnp4!druhi!lbl
BEFORE USING THIS PROGRAM, YOU MUST DO THE FOLLOWING 3 THINGS:
----
1) Read this documentation!!!!!
2) Use FSCK to make sure your disk is CLEAN! There should be NO errors.
3) BACKUP YOUR DISK!!
I can't emphasize the above items enough!
Overview
--------
This program will rearrange the file system on you disk so that all of
the free blocks are contiguous and that the blocks of each file are
contiguous on the disk. The reason that you would like a program to do this
is that over time, the free blocks on the disk become scattered over the
surface. When GEMDOS goes to create a new file, it starts at the beginning
of the disk and searches for free blocks. If the free blocks are scattered
over the disk, it takes much more time for GEMDOS to find them than if they are
contiguous. This is especially true for the current version of GEMDOS.
Also, if a file is scattered over the disk, it will take more time to read
and write that file. Now you know why that once speedy hard-disk seems like
a snail after adding and deleting all those files.
FSREPACK will place all of the free clusters at the beginning of the disk.
Alternatively, it will allow you to place them at the rear of the disk, but
I can't see any reason for doing so.
The process of copying all of the sectors around on a disk can take quite
a long time. For a 16 megabyte partition that is nearly full, it may take
as long as 25 or 30 minutes! Needless to say, this will give your hard disk
a real workout, but don't worry if things seem to take a long time. Normally,
the process should take less than 15 minutes if your partition is around 7
megabytes.
As I stated above, it is imperative that you use the FSCK program on your
partition before using FSREPACK. Your partition should be absolutely
clean to make sure that FSREPACK operates correctly!
Another thing that you should always do before using FSREPACK is to backup
the partition. If FSREPACK is interrupted during processing or if it finds
a serious error, your disk partition may be totally scrambled!
So make a backup!!!
If FSREPACK has changed any of the blocks on your disk, it will always make
you reboot when it is through. The reason for this is that GEMDOS keeps
directory blocks cached in memory. If the blocks are moved around on the
disk the way that FSREPACK does, GEMDOS has a false view of what is on the
disk. If FSREPACK did not make you reboot, after you might see a desk top
display with weird file names. This would be caused by GEMDOS not realizing
that the directories and files have been moved on the disk. The only way
that I know of to make GEMDOS read a new copy of the directories into memory
is to reboot the system so that its view of the disk is correct. If FSREPACK
did not force a reboot of the disk and you forgot to reboot before changing
a file on the disk, then the disk partition could become totally messed up.
In fact, the first version of FSREPACK did not force a reboot and the above
scenario indeed ocurred. I apologize to the few people who got ahold of the
first version and had problems. I hope you heeded my advice and made a
backup!
As usual, please report any bugs or problems to one of the addresses in the
header.
USAGE
-----
FSREPACK -r <volume name>
-r means to put the free clusters at the end of the disk instead of the
beginning. I don't know why anyone would want to do that since it
doesn't give any speed advantage, but it's there.
<volume name> - a drive specifier from a to p with an optional ":".
a blank volume name means repack all partitions.